package com.nanoso.service.jms;

import javax.jms.Message;

import org.springframework.jms.core.JmsTemplate;

public class JmsReciveService {
	private JmsTemplate jmsTemplate;

	public void setJmsTemplate(JmsTemplate jmsTemplate) {
		this.jmsTemplate = jmsTemplate;
	}
	
	public Message reciceMessage(){
		return this.jmsTemplate.receive();
	}
}
